// 在其他路由注册之后添加
app.use('/api/cart', require('./src/routes/cart.js'));
app.use('/api/addresses', require('./src/routes/address.js'));
app.use('/api/payments', require('./src/routes/payment.js'));
import orderRouter from './src/routes/order.js';
app.use('/api/orders', orderRouter); 